<%@page import="cn.school.service.SubjectService"%>
<%@page import="cn.school.entity.Subject"%>
<%@page import="cn.school.entity.Student"%>
<%@page import="cn.school.service.StudentService"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>提交成功</title>
</head>
<body>
<%
request.setCharacterEncoding("utf-8");
String name=request.getParameter("name");
String hour=request.getParameter("hour");
String id=request.getParameter("id");
SubjectService s=new SubjectService();
Subject stu=new Subject();
stu.setSubjectname(name);
stu.setClasshour(hour);
stu.setGradeid(id);
s.add(stu);
%>
</body>
</html>